package com.we823.project.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;


/**
 * The persistent class for the we_user_station database table.
 * 
 */
@Entity
@Table(name="we_user_station")
@NamedQuery(name="UserStationModel.findAll", query="SELECT u FROM UserStationModel u")
public class UserStationModel extends BaseModel {
	private static final long serialVersionUID = 1L;

	@Column(name="station_id")
	private int stationId;
	
	@Transient
	private StationModel station;
	
	@Transient
	private String stationName;
	@Transient
	private String userName;

	@Column(name="user_id")
	private int userId;
	
	@Transient
	private UserModel user;

	public UserStationModel() {
	}

	public int getStationId() {
		return this.stationId;
	}

	public void setStationId(int stationId) {
		this.stationId = stationId;
	}

	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public StationModel getStation() {
		return station;
	}

	public void setStation(StationModel station) {
		this.station = station;
	}

	public UserModel getUser() {
		return user;
	}

	public void setUser(UserModel user) {
		this.user = user;
	}

	public String getStationName() {
		return stationName;
	}

	public void setStationName(String stationName) {
		this.stationName = stationName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
}